
/* $Id: NetPacket.cs 7 2011-03-31 12:52:56Z nramsbottom@gmail.com $ */

using System;

abstract class NetPacket
{

	protected PacketWriter m_Writer;
	
	public UInt32 TypeId { get; private set; }

	public NetPacket(UInt32 typeId, int size)
	{
		m_Writer = new PacketWriter(size);
		this.TypeId = typeId;

		m_Writer.Write(this.TypeId);

	} //
	
	public byte[] GetData()
	{
		return m_Writer.GetData();
	} //
	
} //